#ifndef _data_H_
#define _data_H_
#include "stdint.h"
#include "stdbool.h"
#include "stdio.h"

#define dData_LOG(...) printf(__VA_ARGS__)

void Data_DeviceSampleResult_Get(float *temperature,float *concentration,float *VoltageTemperature,float *VoltageHydrogen);
void Data_SystemRestore(void);
uint8_t Data_DeviceAddress_Get(void);
void Data_DeviceAddress_Set(uint8_t address);
void Data_CalibrationDataUse_Set(bool enable);
bool Data_CalibrationDataUse_Get(void);
void Data_CalibrationLoad(void);
float Data_CalibrationCalculate_VoltageTemperature(float voltage,uint16_t *pos);
float Data_CalibrationCalculate_VoltageHydrogen(float voltage,uint16_t pos);
void Data_Init(void);
void Data_DeviceSample(void);

#endif
